package com.estate.bean;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.estate.util.JsonResult;
import lombok.Data;

import java.io.Serializable;

//房产管理
@Data
@TableName("tb_house")
public class House implements Serializable {
    @TableId
    private String id;
    private String communityId;
    private String buildingId;
    private String code;
    private String name;
    private String ownerId;
    private String telephone;
    private Integer roomNum;
    private Integer unit;
    private String floor;
    private String description;
    @TableField(fill = FieldFill.INSERT)
    private String liveTime;
    private Integer isDelete;

    @TableField(exist = false)
    private JsonResult quarters;
    @TableField(exist = false)
    private JsonResult owner;
    @TableField(exist = false)
    private JsonResult building;
}
